#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

JAVA_HOME            := /usr/lib/jvm/java-gcj
DEB_ANT_BUILD_TARGET := all
DEB_JARS 	     := ant-nodeps dom4j jaxen jdom0 js jsp-api-2.0 junit jython \
			log4j-1.2 logkit xercesImpl

install/libfreemarker-java::
	install -m 644 -D lib/freemarker.jar $(DEB_DESTDIR)/usr/share/java/freemarker-$(DEB_UPSTREAM_VERSION).jar
	dh_link /usr/share/java/freemarker-$(DEB_UPSTREAM_VERSION).jar \
	  /usr/share/java/freemarker.jar

get-orig-source:
	-uscan --upstream-version 0 --rename
